import http from "@/utils/request.js";

export const loginWeChatApplet = params => http.get(`/qnz/wx/login?code=${params.code}`)  //登录
export const loginPhone = params => http.get(`/qnz/wx/phone?code=${params.code}`)  //获取手机号码
export const sysUserName = params => http.get('/qnz/sysUser',params)  //获取用户信息
export const pageList = params => http.get(`/qnz/score/page?current=${params.current}&size=${params.size}`)  //积分记录表
export const update = params => http.post('/qnz/sysUser/update',params)  //修改用户
export const subtractScore = params => http.post('/qnz/sysUser/subtractScore',params)  //减少积分
export const addScore = params => http.post('/qnz/sysUser/addScore',params)  //添加积分



